// 列表--搜索字段
export const indexSearchData = [
  {
    key: 'deliveryProductName',
    title: '配送商',
    type: 'select',
    options: [],
    attr: {
      placeholder: '请输入',
      filterable: true,
      remote: true
    }
  },
  {
    key: 'provinceProductCodeReturn',
    title: 'M平台退货订单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'hospitalRetreatIdReturn',
    title: '医院退货订单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'provinceProductCode',
    title: 'M平台采购订单编号',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'time',
    title: '下单时间',
    type: 'time',
    fieldname: ['startDate', 'endDate'],
    attr: {
      style: 'width:533px !important;',
      class: 'daterange',
      type: 'daterange',
      'start-placeholder': '开始月份',
      'end-placeholder': '结束月份',
      'default-time': ['00:00:00', '23:59:59']
    }
  },
  {
    key: 'typeReturn',
    title: '退货类型',
    type: 'select',
    attr: {
      placeholder: '请输入'
    },
    options: [
      { label: '全部', value: 0 },
      { label: '批发', value: 1 },
      { label: '寄售', value: 2 }
    ]
  }
]
// 列表页-tab
export const indexTabsArr = [
  { lab: '全部', val: 'null' },
  { lab: '待配送商收货', val: 1 },
  { lab: '已完成', val: 2 }
]
export const typeReturn = {
  1: '批发退货',
  2: '寄售退货'
}
export const orderStatus = {
  1: '待收货',
  2: '已完成'
}
// 列表--列表表头
export const indexTableColumns = [
  { prop: 'provinceProductCodeReturn', label: 'M平台退货单编号', width: 170, showTooltipWhenOverflow: true },
  { prop: 'hospitalRetreatIdReturn', label: '医院退货订单编号', width: 160, showTooltipWhenOverflow: true },
  { prop: 'provinceProductCode', label: 'M平台订单编号', width: 170, showTooltipWhenOverflow: true },
  { prop: 'productSpecCount', label: '退货品规数', minWidth: 100, showTooltipWhenOverflow: true },
  { prop: 'returnNum', label: '退货数量', width: 90 },
  { prop: 'deliveryProductName', label: '配送商', minWidth: 150, showTooltipWhenOverflow: true },
  { prop: 'typeReturn', label: '退货类型', width: 90, formatter: row => typeReturn[row.typeReturn] },
  { prop: 'moneyReturn', label: '退货金额', width: 100 },
  { prop: 'orderStatus', label: '订单状态', width: 90, formatter: row => orderStatus[row.orderStatus] },
  { prop: 'createdAt', label: '提交时间', width: 150 },
  { prop: 'action', label: '操作', width: 100, fixed: 'right' }
]
// 详情表单内容
export const baseInfoDic = [
  { key: 'provinceProductCodeReturn', title: 'M平台退货订单编号' },
  { key: 'hospitalRetreatIdReturn', title: '医院退货订单编号' },
  { key: 'provinceProductCode', title: '采购订单编号' },
  { key: 'orderStatus', title: '订单状态' },
  { key: 'createdAt', title: ' 订单提交时间' },
  { key: 'deliveryProductName', title: '配送商' },
  { key: 'productSpecCount', title: '品规数' },
  { key: 'province', title: '退货地址' },
  { key: 'userName', title: '联系人' },
  { key: 'userPhone', title: '联系电话' },
  { key: 'resone', title: '退货原因' }
]
// 详情 -  表格
export const detailColumns = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'checkReturnItemCode', label: '退货明细编号', width: 150 },
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', width: 150 },
  { prop: 'specification', label: '产品规格', width: 150 },
  { prop: 'productType', label: '产品型号', width: 150 },
  { prop: 'manufacturer', label: '生成厂家', width: 150 },
  { prop: 'registrationNumber', label: '注册证号（或备案号）', width: 170 },
  { prop: 'price', label: '单价', width: 150 },
  { prop: 'awaitReceiveNum', label: '退货数量/单位', width: 150 },
  { prop: 'detailAmount', label: '小计金额', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 }
]

// 订单状态
export const statusAttr = {
  1: '待收货',
  2: '已完成'
}
